<ul>
   <li><a id="leaf_0" class="action">Новый</a></li>
    
    <? foreach ($objects as $object): ?>
       <li><a id="leaf_<?=$object['id'];?>" class="action" href="#<?=$parent_id;?>,<?=$object['id'];?>"><?=$object['title'];?></a></li>
    <? endforeach; ?>
</ul>